import {ref} from "vue";

export default function useMousePoint(){
    const x = ref(-1);
    const y = ref(-1);
    const getMouse = (e:MouseEvent)=>{
        x.value = e.clientX;
        y.value = e.clientY
    }
    return {x,y,getMouse}
}
